﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Text;
using System.Threading.Tasks;

namespace NBBL_Tile_Editor
{
    class BackgroundLayer
    {
        Point location = new Point(0,0);

        public Point Location
        {
            get { return location; }
            set { location = value; }
        }

        Size size = new Size(256, 256);

        public Size Size
        {
            get { return size; }
            set { size = value; }
        }

        // Parrallax speed
        float paraSpeed = 1.0f;

        public float ParaSpeed
        {
            get { return paraSpeed; }
            set { paraSpeed = value; }
        }

        bool loop = true;

        public bool Loop
        {
            get { return loop; }
            set { loop = value; }
        }

        //Holds texture info for rendering
        int textureID = -1;

        public int TextureID
        {
            get { return textureID; }
            set { textureID = value; }
        }
        //Holds texture info for saving
        int textureIndex = 0;

        public int TextureIndex
        {
            get { return textureIndex; }
            set { textureIndex = value; }
        }

        string name = "Layer";

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        bool visible = true;

        public bool Visible
        {
            get { return visible; }
            set { visible = value; }
        }

        public override string ToString()
        {
            return name;
        }



    }
}


